#include <bits/stdc++.h>

using namespace std;

int a[550],b[550],c[550],la,lb,lc;
int main()
{
    string q,w;
    cin>>q>>w;
    int la = q.length();
    int lb = w.length();
    for(int i=1;i<=la;i++){
        a[i] = q[la-i]-'0';
    }
    for(int i=1;i<=lb;i++){
        b[i] = w[lb-i]-'0';
    }
    lc = max(la,lb);
    for(int i = 1; i<=lc;i++){
        c[i]+=a[i]+b[i];
        c[i+1]+=c[i]/10;
        c[i] = c[i]%10;
    }
    if(c[lc+1]>0)lc++;
    while(c[lc]==0&&lc>1){
        lc--;
    }
    for(int i = lc;i>=1;i--){
        cout << c[i];
    }
    return 0;
}
